package com.itaem.community.modules.infrastructure.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>项目名称: community </p>
 * <p>文件名称: UserUpdateDTO </p>
 * <p>描述: [类型描述] </p>
 * <p>创建时间: 2020/10/29 </p>
 * <p>作者信息: tomato</p>
 *
 * @author tomato
 * @version v1.0
 */
@Data
@ApiModel(value = "用户信息更新实体")
public class UserUpdateDTO {

    @NotNull
    @ApiModelProperty(value = "用户id")
    private Integer id;

    @NotBlank(message = "身份证号码不能为空")
    @ApiModelProperty(value = "身份证号码")
    private String idCardNumber;

    @NotBlank(message = "用户住址不能为空")
    @ApiModelProperty(value = "用户住址")
    private String address;

    @NotBlank(message = "用户性别不能为空")
    @ApiModelProperty(value = "用户性别")
    private String gender;

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String name;

    @NotBlank(message = "手机号码不能为空")
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;
}
